<?php 
namespace town\controller;

use town\model\User as U;

/**
 * 
 */
class User
{
    public function profile($id)
    {
        echo "id:{$id}<br>";
        $name = U::load($id)->name;
        echo "<h2>name:$name</h2>";
    }

    public function info()
    {
        echo 'demo';
    }
}

